home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / Messaging / SEPriv.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  1.5 KB  |  55 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SEPriv.cpp
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Owned by:    Nick Pilch
  7.  
  8.     Copyright:    © 1994 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <3>     9/23/96    JP        1384958: Moved routines to SEUtils.cpp
  13.          <9>     6/30/95    JP        Acquire when creating standard part token
  14.          <8>     6/19/95    eeh        1246443: add PartFrameFromStandardPartToken
  15.                                     etc.
  16.          <7>     6/13/95    JP        Changed AcquireActiveWindow to
  17.                                     AcquireFrontRootWindow
  18.          <6>     5/26/95    RR        #1251403: Multithreading naming support
  19.          <5>     5/21/95    NP        1248898: GetUserToken, ODDescToAEDesc, etc.
  20.                                     recipe change. Add SetUserODToken for
  21.                                     setting user ODDesc in an OSLToken.
  22.          <4>     5/17/95    RR        #1250135/1250137/1250143 Getters increment
  23.                                     refcount
  24.          <3>     4/25/95    NP        1186795, 1237220, 1240571: Fixed whose
  25.                                     clauses by allowing swapping in count proc.
  26.          <2>     4/25/95    JP        1237938: Added ODRgstry.xh include for
  27.                                     kODStandardPartTokenType
  28.          <1>     4/14/95    NP        first checked in
  29.  
  30.     To Do:
  31. */
  32.  
  33. #ifndef _SEPRIV_
  34. #include "SEPriv.h"
  35. #endif
  36.  
  37. #ifndef _CNTXTOSL_
  38. #include "CntxtOSL.h"
  39. #endif
  40.  
  41.  
  42. //------------------------------------------------------------------------------
  43. // SetUserODToken
  44. //
  45. //    Set the "user" token in the token that the OSL passes around.
  46. //
  47. //    The userToken is the first four bytes.
  48. //------------------------------------------------------------------------------
  49.  
  50. void SetUserODToken(OSLToken* oslToken, ODDesc* odDesc)
  51. {
  52.     *((ODDesc**)(*(oslToken->dataHandle))) = odDesc;
  53. }
  54.  
  55.